package cn.edu.xmu.oomall.shop.microservice;

import cn.edu.xmu.oomall.shop.microservice.vo.ModifiedUserVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value = "privilege-service")
public interface PrivilegeService {

    @PutMapping("internal/self/users")
    InternalReturnObject modifyUserDepartId(@Valid @RequestBody ModifiedUserVo vo);
}
